<%--
  Created by IntelliJ IDEA.
  User: Mr.G
  Date: 2018/12/28
  Time: 15:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html>
<head>
    <title>医疗管理系统--欢迎您： ${sessionScope.login_user.username}</title>
    <%@include file="/WEB-INF/jsp/common.jsp"%>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo"><img src="${path}/assets/images/logo.png" alt="logo" width="30%" height="30%">  医疗管理系统</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <%--<li class="layui-nav-item"><a href="">控制台</a></li>--%>
            <%--<li class="layui-nav-item"><a href="">商品管理</a></li>--%>
            <%--<li class="layui-nav-item"><a href="">用户</a></li>--%>
            <%--<li class="layui-nav-item">--%>
                <%--<a href="javascript:;">其它系统</a>--%>
                <%--<dl class="layui-nav-child">--%>
                    <%--<dd><a href="">邮件管理</a></dd>--%>
                    <%--<dd><a href="">消息管理</a></dd>--%>
                    <%--<dd><a href="">授权管理</a></dd>--%>
                <%--</dl>--%>
            <%--</li>--%>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="${path}/${sessionScope.login_user.touxiang}" class="layui-nav-img">
                    [ ${sessionScope.login_user.role.rolelabel} ] ${sessionScope.login_user.username}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;">基本资料</a></dd>
                    <dd><a href="javascript:;">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="javascript:void(0)"  onclick="logout()">退了</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <c:forEach var="menuforon" items="${sessionScope.login_user_menufoton}">
                   <c:if test="${menuforon.parentid == -1}">
                       <li class="layui-nav-item  layui-nav-itemed">
                           <a class="" href="javascript:;"><i class="layui-icon ${menuforon.oaimgpath}"></i><span style="padding: 2px;"></span>${menuforon.menuname}</a>
                           <dl class="layui-nav-child">
                               <c:forEach items="${sessionScope.login_user_menufoton}" var="menuforontwo">
                                   <c:if test="${menuforontwo.parentid != -1 && menuforontwo.parentid == menuforon.menuid}">
                                       <dd><a href="${path}/${menuforontwo.oaaction}"  target="middle"><i class="layui-icon ${menuforontwo.oaimgpath}"></i><span style="padding: 4px;"></span>${menuforontwo.menuname}</a></dd>
                                   </c:if>
                               </c:forEach>
                           </dl>
                       </li>
                   </c:if>
                </c:forEach>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
            <iframe name="middle" style="margin: 10px" src="${path}/nnew/shequ" frameborder="0" width="100%" height="100%"></iframe>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © H03 - 底部固定区域
    </div>
</div>
<script src="${path}/assets/layui/layui.js"></script>
<script>
    //JavaScript代码区域
    layui.use(['element','layer'], function(){
        var element = layui.element;
    });

    function logout(){
        layer.confirm('确定退出?', {icon: 3, title:'提示'}, function(index){
            location.href="${path}/user/logout"
            layer.close(index);
        });
    }
</script>
</body>
</html>
